<!doctype html>
<html>
	<head>
		<title>首页</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="viewport" content="initial-scale=1.0, minimum-scale=1.0, maximum-scale=2.0, user-scalable=no, width=device-width">
		<meta name="format-detection" content="telephone=no">
		<meta name="apple-mobile-web-app-capable" content="yes"/> 
		<meta name="renderer" content="webkit">
		<link rel="stylesheet" href="assets/css/amazeui.min.css">
		<link rel="stylesheet" type="text/css" href="assets/css/swiper-3.4.1.min.css"/>
		<link rel="stylesheet" href="assets/css/style.css">
		<style type="text/css">
			/* screening */
					* {
	
				-moz-box-sizing: border-box;
				box-sizing: border-box;
			}
						html,body {
				/* On modern browsers, prevent the whole page to bounce */
				overflow: visible!important;
				width: 100%;
				height: 100%;
			}
			html{
				height: auto;
			}
			.slide_ul .slide_ul_li{
				min-height:14rem;
			}
			.slide_ul .slide_ul_li a{
				height:14rem;
				display: block;
			}
			.slide_ul .slide_ul_li a img{
				height: 14rem;
			}
			.service-list::after{
				clear: both;
				content: "";
				height: 0;
			}
			div.screening {
				width: 100%;
				overflow: hidden;
				background: #fff;
			}
			div.screening>ul {
				margin: 0;
				padding: 0;
				list-style-type: none;
				border-top: solid 1px #d3d3d3;
				border-bottom: solid 1px #d3d3d3;
				overflow: hidden;
			}
			div.screening>ul>li {
				float: left;
				/*width: 32%;*/
				text-align:center;
				/*line-height: 3rem;*/
				border:0;
				/*margin-left: 35px;*/
				
			}
			div.screening>ul>span {
				float: left;
				line-height: 3rem;
				display: inline-block;
				width: 1%;
				text-align: center;
				color: #C7C6CB;
				margin-left: 35px;
			}
			
			.append {
				height: 100px;
				background-color: royalblue;
			}
			#content-box{
				width: 100%;
				min-height:160px;
			}
			.tab_container .tab_content{
				display: none;
			}
			.active{
				display: block!important;
			}
			.active_li{
				color:#68bae0;
				border-bottom: 2px solid #68bae0!important;
			}
			.active_li a{
				color:#68bae0!important;
			}
			.fix{
				position: fixed;
				top: 4rem!important;
				width: 100%;
				z-index: 100000;
				border: none!important;
			}
			.margin{
				margin-top:4rem;
			}
			.ios{
				position: relative;
				-ms-touch-action: none;
				/* Prevent the callout on tap-hold and text selection */
				-webkit-touch-callout: none;
				-webkit-user-select: none;
				-moz-user-select: none;
				-ms-user-select: none;
				user-select: none;
			
				/* Prevent text resize on orientation change, useful for web-apps */
				-webkit-text-size-adjust: none;
				-moz-text-size-adjust: none;
				-ms-text-size-adjust: none;
				-o-text-size-adjust: none;
				text-size-adjust: none;
			}
			.footer ul::after{
				content: "";
				height: 0;
				clear: both;
				display: block;
				zoom:1;
			}
			#search_inpt{
				color:#999;border-radius: 0.5rem;height:2.6rem;line-height:2.8rem;background:url(../images/glass.png) no-repeat #afd8ea;background-position: 0.5rem center;padding-left: 3rem;
			}
			.service-list1 .s-center button.btn-right{display:none}
			.service-list1 .s-center button.btn-left{width:100%}
			.swiper-slide img{max-width: 100%}
		</style>
		<script src="assets/js/jquery.min.js"></script>
		<!--<script src="assets/js/jquery-1.9.0.min.js"></script>-->
		<!--<script charset="utf-8" src="https://map.qq.com/api/js?v=2.exp&key=N6LBZ-GQJKU-LRKVR-2GJTI-DPLNV-B7FA4"></script>-->
		<script src="https://3gimg.qq.com/lightmap/components/geolocation/geolocation.min.js "></script>
		<script src="assets/js/allUse.js"></script>
		<script src="assets/js/amazeui.min.js"></script>
		<script src="assets/js/swiper-3.4.1.min.js"></script>
		<script type="text/javascript">
//			$(document).ready(function() {
// 			var browser={//判断浏览器内核  暂时无用
// 			    versions:function(){
// 			        var u = navigator.userAgent, app = navigator.appVersion;
// 			        return {
// //			            trident: u.indexOf('Trident') > -1, //IE内核
// //			            presto: u.indexOf('Presto') > -1, //opera内核
// //			            webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
// //			            gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,//火狐内核
// 			            mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
// 			            ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
// 			            android: u.indexOf('Android') > -1 || u.indexOf('Adr') > -1, //android终端
// 			            iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
// 			            iPad: u.indexOf('iPad') > -1, //是否iPad
// //			            webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
// //			            weixin: u.indexOf('MicroMessenger') > -1, //是否微信 （2015-01-22新增）
// //			            qq: u.match(/\sQQ/i) == " qq" //是否QQ
// 			        };
// 			    }(),
// 			    language:(navigator.browserLanguage || navigator.language).toLowerCase()
// 			};
				$(function() {
					//更新用户所在地下
//					if(window.sessionStorage.getItem("realposition")){
//						$("#now_position").html(window.sessionStorage.getItem("realposition"))
//					}
					//更新用户所在地以上
					//判断旅游专家 以下
					
					if(token){//用户已登录
						if(sessionStorage.getItem("my_volg")==="un"){//不存在旅游专家
							live2();
							$('.service-list1').css('display','block');
						}else{
							live1();
						}
					}else{
						$("#service").click(function(){
							window.location.href="login.html"
						});
					}
					//判断旅游专家 以上
					//2.1 轮播图以下
					$.ajax({
						type:"get",
						url:url_enter+"/api/banner",
						headers: headers,
						data:{
						},
						success:function(data){
							console.log(data)
//							console.log(data.data.length);
							if(data.result==1){
								
								for(var j=0;j<data.data.length;j++){
									$("#outer").append('<div class="swiper-slide"><a href="'+data.data[j].jump_url+'"><img src="'+data.data[j].image+'"/></a></div>')
//									$(".slide_ul li").eq(j).find($("img")).attr("src",""+data.data[j].image+"")
//									$(".slide_ul li").eq(j).find($("a")).attr("href",""+data.data[j].jump_url+"")
								};
								j=null;
								var mySwiper = new Swiper('.swiper-container', {
									 pagination: '.swiper-pagination',
						  			 paginationClickable: true,
									 loop:true,
									 autoplay :2000,
									 speed:500,
									 autoplayDisableOnInteraction:false
								})
							}
						},
						error:function(xhr){
							console.log(xhr)
						}
					});
//					//轮播图 以上						
					$.get(url_enter+"/api/get_travel_main_type", {}, function(data) {
//						var lvyoufljson = data;
						console.log(data);
						if(data.result==1){
							for(var i=0;i<data.data.length;i++){
								$(".select ul").append('<li><a href="list.html?id='
								+data.data[i].id+'&name='+data.data[i].type_name+'"><img src="'
								+data.data[i].image+'"><br>'
								+data.data[i].type_name+'</a></li>')
							}
//							$(".fix_list").html($())
							var AIenter='<a href="comingSoon.html"><img src="assets/images/bxdz.jpg"><br>伴行定制</a>'
							
							$($(".select ul li")[3]).html($($(".select ul li")[4]).html());
							$($(".select ul li")[4]).html(AIenter);
							window.sessionStorage.setItem("major_classfiy",JSON.stringify(data))//存取大分类列表
						}else{
							alert(data.message)
						}
						
					});
					//2.4 推荐列表
					$.ajax({
						type: "get",
						url: url_enter+"/api/get_home_recom_lines",
						headers:headers,
						data: {},
						success: function(data, status, xhr) {
							console.log(data)
//							href="#tab'+(i+1)+'"
							for(var i=0;i<data.data.recom_list.length;i++){
								$(".screening .tabs").append('<li style="width:'
								+(100/data.data.recom_list.length)+'%;height:3.9rem" class="Regional"><a>'
								+data.data.recom_list[i].line_type_name+'</a></li>');
								$(".tab_container").append('<div id="tab'+(i+1)+'" class="tab_content"><ul id="list_ul'+i+'"></ul></div>');
//								for(j=0;j<data.data.recom_list[i].length;j++){
//									console.log(j)
//								}
//								<li><a href="show.html?line_id='
//								+(data.data.recom_list[i])[j].line_id.toString()+'"><img src="'
//								+(data.data.recom_list[i])[j].image+'" alt=""><h2 class="gwt1">'
//								+(data.data.recom_list[i])[j].title+'</h2><span class="gws1">￥'
//								+(data.data.recom_list[i])[j].price+'</span></a></li>
							};
//							console.log($(".tabs li").length)
							for(var k=0;k<$("#fix_list li").length;k++){
//								console.log(data.data.recom_list[k].line_list.length)
								for(var q=0;q<data.data.recom_list[k].line_list.length;q++){
									$("#list_ul"+k+"").append('<li><a href="show.html?line_id='
								+(data.data.recom_list[k]).line_list[q].line_id.toString()+'"><img src="'
								+(data.data.recom_list[k]).line_list[q].image+'" alt=""><h2 class="gwt1">'
								+(data.data.recom_list[k]).line_list[q].title+'</h2><span class="gws1">￥'
								+(data.data.recom_list[k]).line_list[q].price+'</span></a></li>')
								}
								
							};
							$(".container .tab_content").eq(0).addClass("active");
							$("#fix_list li").eq(0).addClass("active_li");
							$(".fix_list li").eq(0).addClass("active_li");
							$("#fix_list li").click(function(){
								$(".container .tab_content").eq($(this).index()).addClass("active").siblings().removeClass("active");
								$(this).addClass("active_li").siblings().removeClass("active_li");
							$(".fix_list li").eq($(this).index()).addClass("active_li").siblings().removeClass("active_li");
							});
							$(".fix_list li").click(function(){
								$(".container .tab_content").eq($(this).index()).addClass("active").siblings().removeClass("active");
								$(this).addClass("active_li").siblings().removeClass("active_li");
								$("#fix_list li").eq($(this).index()).addClass("active_li").siblings().removeClass("active_li");
							});
							//设置html高度
//							$(".tab_content").hide();
//							$("ul.tabs li:first").addClass("active").show();
//							$(".tab_content:first").show();
//							$("ul.tabs li").click(function() {
//								$("ul.tabs li").removeClass("active");
//								$(this).addClass("active");
//								$(".tab_content").hide();
//								var activeTab = $(this).find("a").attr("href");
//								$(activeTab).fadeIn();
//								return false;
//							});
//							console.log(data);
//							var inLand=data.data.recom_list[1];//获取国内数据
//							var outLand=data.data.recom_list[0];//获取国外数据
//							for(var i=0;i<outLand.line_list.length;i++){
//								$("#tab1 ul").append('<li><a href="show.html?line_id='
//								+outLand.line_list[i].line_id.toString()+'"><img src="'
//								+outLand.line_list[i].image+'" alt=""><h2 class="gwt1">'
//								+outLand.line_list[i].title+'</h2><span class="gws1">￥'
//								+outLand.line_list[i].price+'</span></a></li>')
//							};
//							i=null;
//							for(var i=0;i<inLand.line_list.length;i++){
//								$("#tab3 ul").append('<li><a href="show.html?line_id='
//								+inLand.line_list[i].line_id.toString()+'"><img src="'
//								+inLand.line_list[i].image+'" alt=""><h2 class="gwt1">'
//								+inLand.line_list[i].title+'</h2><span class="gws1">￥'
//								+inLand.line_list[i].price+'</span></a></li>')
//							};
//							return;
//							var shennei = data.data.recom_list[1].line_list;
////							console.log(shennei);
//							
//							//1个价格
//							var sprice1 = shennei[0].price;
////							console.log(sprice1);
//							$('.sns1').text("￥"+sprice1+"起");
//							//1个标题
//							var stitle1 = shennei[0].title;
////							console.log(stitle1);
//							$('.snt1').text(stitle1);
//							//1个图片
//							var simage1 = shennei[0].image;
////							console.log(simage1);
							//一下滚动浮动
							
						},
						error: function(xhr, status, thrown) {
//							console.log(xhr);
						}
					});
					//跳转搜索
					
					// $(document).ready(function(){
						andriodScroll();
						function andriodScroll(){
							
							var DomTop,DomHeight;
							var ScrollTop=0;
					 		 DomHeight=document.getElementById("fix_list").offsetHeight;
							$(window).on("scroll",function(){
								DomTop=$("#fix_list_box").offset().top;//ul距离顶部距离
							 ScrollTop=document.documentElement.scrollTop||document.body.scrollTop ||  window.pageYOffset;//滚动条位置
	//								 $("#test_div").html(""+DomTop+","+DomHeight+","+ScrollTop+"and");
								if(ScrollTop>=(DomTop-DomHeight)){//
	//										$("#test_div").html(""+DomTop+","+DomHeight+","+ScrollTop+"down and")
	//										$("#fix_list").addClass("fix");
	//										$(".tab_container").addClass("margin")
									$(".fix_list").css("display","block");
								}else{
	//										$("#test_div").html(""+DomTop+","+DomHeight+","+ScrollTop+"up and")
									$(".fix_list").css("display","none");
	//										$("#fix_list").removeClass("fix");
	//										$(".tab_container").removeClass("margin");
								};
							})
						};
	// 					function iosScroll(){//ios端表现的更好
	// 						document.addEventListener('touchmove', function (e) { e.preventDefault(); }, isPassive() ? {
	// 							capture: false,
	// 							passive: false
	// 						} : false);
	// 						function isPassive() {
	// 						    var supportsPassiveOption = false;
	// 						    try {
	// 						        addEventListener("test", null, Object.defineProperty({}, 'passive', {
	// 						            get: function () {
	// 						                supportsPassiveOption = true;
	// 						            }
	// 						        }));
	// 						    } catch(e) {}
	// 						    return supportsPassiveOption;
	// 						}
	// 						console.log($("body").offset().height)
	// 						$("body").append('<script src="assets/js/iscroll-probe.js"><\/\script>');
	// 						$("body").addClass("ios")
	// 						var DomTop,DomHeight;
	// 						var ScrollTop=0;
	// 						var myScroll = new IScroll('body',{ 
	// 								probeType: 3, 
	// 								mouseWheel: true,
	// 								bounce:false,
	// 								disableMouse:true,
	// 								fadeScrollbars:false,
	// 								deceleration:0.0065
									
	// 							});
	// 							myScroll.on('scroll', updatePosition);
	// 							myScroll.on('scrollEnd', updatePosition);
	// 						}
							
	// 						function updatePosition(){
	// 							DomHeight=document.getElementById("fix_list").offsetHeight;
	// 							DomTop=$("#fix_list_box").offset().top;//ul距离顶部距离
	// 							ScrollTop=this.y;
	// 							$("#test_div").html(""+DomTop+","+DomHeight+","+ScrollTop+"and");
	// 							if(ScrollTop>=(DomTop-DomHeight)){//
	// //										$("#test_div").html(""+DomTop+","+DomHeight+","+ScrollTop+"down and")
	// //										$("#fix_list").addClass("fix");
	// //										$(".tab_container").addClass("margin")
	// 								$(".fix_list").css("display","block");
	// 							}else{
	// //										$("#test_div").html(""+DomTop+","+DomHeight+","+ScrollTop+"up and")
	// 								$(".fix_list").css("display","none");
	// //										$("#fix_list").removeClass("fix");
	// //										$(".tab_container").removeClass("margin");
	// 							};
	// 						}
							
						// });
					
					
//							//以上滚动浮动
					
					
					
//				});
			});
		</script>
	</head>
				<!--.fix{
				position: fixed;
				top: 4rem!important;
				width: 100%;
				z-index: 100000;
				border: none!important;
			}
			.margin{
				margin-top:4rem;
			}-->
	<body>
		<!-- <p id="test_div" style="position: fixed;top:60%;right: 0;height:2rem;color#fff;background:#000;font-weight:900;text-align: center;line-height: 2rem;width:40%;z-index: 1010000000;">0手机端测试距离标签 没有作用</p> -->
		<div class="containter"> 
			<header data-am-widget="header" class="am-header am-header-default" style="padding:0rem 2%;">
				<div class="am-header-left am-header-nav" style="width:24%; text-align: left;position: relative; float:left;">
					
						<span id="now_position" style="margin: 0;padding: 0;color: #fff;">深圳</span><img src="assets/images/down.png">
					
				</div>
			<h1 style="width:72%;margin:0.7rem 0 0rem 0;padding: 0;float:right;vertical-align: middle;">
        <!-- <input id="search_inpt" class="txt" type="search" style="color:#999" placeholder="目的地" /> -->
        	<div id="search_inpt"><span style="font-weight:100;">目的地</span></div><!--模拟input-->
			</h1>
			</header>
			<div id="pos_box" style="width: 100%; height:4rem;"></div>
			<!--<div id="content-box"></div>-->
			<div class="swiper-container">
				<div class="swiper-wrapper" id="outer">
				</div>
				<div class="swiper-pagination"></div>
				<!--<img src="assets/images/banner3.png" alt="">-->
			</div>
			<div class="select">
				<ul>
					<!--<li>
						<a href="list.html"><img src="assets/images/c1.png"><br>港澳台</a>
					</li>
					<li>
						<a href="list.html"><img src="assets/images/c2.png"><br>出境游</a>
					</li>
					<li>
						<a href="list.html"><img src="assets/images/c3.png"><br>国内游</a>
					</li>
					<li>
						<a href="list.html"><img src="assets/images/c4.png"><br>邮轮</a>
					</li>
					<li>
						<a href="list.html"><img src="assets/images/c5.png"><br>自由行</a>
					</li>-->
				</ul>
				<div class="clear"></div>
				<!-- <i>今日热点<span>|</span><img src="assets/images/a5.png"><font id="div1"><a class="div">大好春光何不出去走走</a></font></i> -->
			</div>
			<!-- 推荐 -->
			<div class="recommend">
				<h2><img src="assets/images/a6.png">热门推荐</h2>
				<div class="screening container">
					<div id="fix_list_box" style="height:4rem;width:100%;line-height: 4rem;position: absolute;"></div>
					<ul id="fix_list" class="tabs" style="height:4rem;line-height: 4rem;z-index: 100;">
						<!--<li class="Regional active">
							<a href="#tab1">国外游</a>
						</li>-->
						<!--<span>|</span>-->
						<!--<li class="Brand">
							<a href="#tab2">国内游</a>
						</li>
						<span>|</span>-->
						<!--<li class="Sort">
							<a href="#tab3">省内游</a>
						</li>-->
					</ul>
					<ul class="fix_list tabs" style="height:4rem;line-height: 4rem;position: fixed;background:rgba(0,0,0,0.6);z-index: 1000000;width:100%;top:4rem;display: none;"></ul>
					<div class="tab_container">
						<!--111111111111111111111111111111111111111111111111111111111111111111111-->
						<!--<div id="tab1" class="tab_content" style="display: block; ">
							<ul>
								<li>
									<a href="show.html">
										<img src="assets/images/img1.png" alt="">
										<font>深圳市出发</font>
										<h2 class="gwt1">澳洲名城大堡礁新西兰北岛12天</h2>
										<span class="gws1">￥12533起</span>
									</a>
								</li>
								<li>
									<a href="">
										<img src="wimage2" alt="">
										<font>深圳市出发</font>
										<h2 class="gwt2">澳洲名城大堡礁新西兰北岛12天</h2>
										<span class="gws2">￥12533起</span>
									</a>
								</li>

								<li>
									<a href="">
										<img src="wimage3" alt="">
										<font>深圳市出发</font>
										<h2 class="gwt3">澳洲名城大堡礁新西兰北岛12天</h2>
										<span class="gws3">￥12533起</span>
									</a>
								</li>
								<li>
									<a href="">
										<img src="wimage4" alt="">
										<font>深圳市出发</font>
										<h2 class="gwt4">【全景乐悠游】加拿大东西岸+落基山脉三大国家公园</h2>
										<span class="gws4">￥4599起</span>
									</a>
								</li>
								<li>
									<a href="">
										<img src="wimage5" alt="">
										<font class="gwt5">深圳市出发</font>
										<h2>澳洲名城大堡礁新西兰北岛12天</h2>
										<span class="gws5">￥12533起</span>
									</a>
								</li>
								<li>
									<a href="">
										<img src="wimage6" alt="">
										<font>深圳市出发</font>
										<h2 class="gwt6">【全景乐悠游】加拿大东西岸+落基山脉三大国家公园</h2>
										<span class="gws6">￥4599起</span>
									</a>
								</li>
								<li>
									<a href="">
										<img src="wimage7" alt="">
										<font>深圳市出发</font>
										<h2 class="gwt7">澳洲名城大堡礁新西兰北岛12天</h2>
										<span class="gws7">￥12533起</span>
									</a>
								</li>
								<li>
									<a href="">
										<img src="wimage8" alt="">
										<font>深圳市出发</font>
										<h2 class="gwt8">【全景乐悠游】加拿大东西岸+落基山脉三大国家公园</h2>
										<span  class="gws8">￥4599起</span>
									</a>
								</li>
							</ul>-->
						</div>
						<!--22222222222222222222222222222222222222222222222222222222222222222222222-->
					</div>
				</div>
				<div class="service-list1">
					<div class="s-top"></div>
					<div class="s-center">
						<img src="assets/images/ren.png">
						<p>
							<span class="vlog_name">旅游专家</span><br>
							<span class="vlog_phone">1对1服务至心</span>
						</p>
						<button class="btn-left">选择专家</button>
						<button class="btn-right">暂不选择</button>
					</div>
				</div>
				<div class="service-list" style="height: 13rem;width: 100%;">
					<p class="s-top"></p>
					<div class="s-center">
						<img src="assets/images/head.png">
						<div class="s-right">
							<span style="font-size: 1.4rem">我的旅游专家：马钧</span>
							<span>营业部：福华营业部</span>
							<span>电话：13752567748</span>
						</div>
						<div class="clear"></div>
						<div class="bottom_btn_box" style="overflow: auto;width:100%;text-align: center;">
							<button class="btn1">切换专家</button>
							<button class="btn2">在线咨询</button>
							<button class="btn3">拨号</button>
						</div>
					</div>
				</div>
			</div>
			<div style="width: 100%; height:4.5rem;"></div>
			<div class="footer">
				<ul>
					<li>
						<a href="index.html" class="active"><img src="assets/images/footer1.png"><br>首页</a>
					</li>
					<li>
						<a href="classify.html"><img src="assets/images/footer22.png"><br>分类</a>
					</li>
					<li class="service" id="service">
						<a href="javascript:void(0)"><img src="assets/images/footer5.png"></a>
					</li>
					<li>
						<a href="hunt.html"><img src="assets/images/footer33.png"><br>目的地</a>
					</li>
					<li>
						<a href="heart.html"><img src="assets/images/footer44.png"><br>我的</a>
					</li>	
				</ul>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=ZVklwwvnAYlYKihlZGpBIwD1hoL54n4m"></script>
	<script type="text/javascript">
		$(document).ready(function() {
			// $("#search_inpt").on("keypress",function(e){
			// 	 var keycode = e.keyCode;  
   //              var searchName = $(this).val();
   //              if(keycode=='13') {  
   //                  e.preventDefault();    
   //                  //请求搜索接口  
   //                   var val=$(this).val();
   //                 	window.location.href="tour_around.html?from=idxsch&val="+val+"";
   //              } 
			// })
			$("#search_inpt").focus(function(){
				$(this).blur
			})
			$("#search_inpt").click(function(){
				window.location.href="tour_around.html"
			})
		});
		//在底部调用获取城市定位信息方法
		window.onload=function(){
			var browser={//判断浏览器内核  暂时无用
   			    versions:function(){
   			        var u = navigator.userAgent, app = navigator.appVersion;
   			        return {
   //			            trident: u.indexOf('Trident') > -1, //IE内核
   //			            presto: u.indexOf('Presto') > -1, //opera内核
   //			            webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核
   //			            gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1,//火狐内核
   			            mobile: !!u.match(/AppleWebKit.*Mobile.*/), //是否为移动终端
   			            ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端
   			            android: u.indexOf('Android') > -1 || u.indexOf('Adr') > -1, //android终端
   			            iPhone: u.indexOf('iPhone') > -1 , //是否为iPhone或者QQHD浏览器
   			            iPad: u.indexOf('iPad') > -1, //是否iPad
   //			            webApp: u.indexOf('Safari') == -1, //是否web应该程序，没有头部与底部
   //			            weixin: u.indexOf('MicroMessenger') > -1, //是否微信 （2015-01-22新增）
   //			            qq: u.match(/\sQQ/i) == " qq" //是否QQ
   			        };
   			    }(),
   			    language:(navigator.browserLanguage || navigator.language).toLowerCase()
   			};
			if(position_flag && !window.sessionStorage.getItem("realposition")){//调用地理位置信息
				
				if(browser.versions.ios){//ios使用腾讯地图
				//	getMyposition();
				}else{//安卓使用百度地图
				//	getLocation()
				}
//				getMyposition();
			};
		}
	</script>
<script src="assets/js/amazeui.min.js"></script>
</html>